<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>


<%@ page session="false" %>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/style.css" type="text/css"/>
	<title>${pageTitle}</title>
</head>
<body>
<div class="top">
<div class="menu">
<ul>
	<li><a href="<spring:url value="/" htmlEscape="true" />">Úvodní stránka</a></li>
	<li><a href="<spring:url value="/gallery" htmlEscape="true" />">Galerie</a></li>
	<li><a href="<spring:url value="/registration" htmlEscape="true" />">Registrace</a></li>
	<sec:authorize access="!isAuthenticated()">
		<li><a href="<spring:url value="/login" htmlEscape="true" />">Přihlášení</a></li>
	</sec:authorize>
</ul>
</div>
<div class="userInfo">
	<sec:authorize access="isAuthenticated()"> 
	

	
		Přihlášený uživatel: <strong><a href="<spring:url value="/user/show/${pageContext.request.userPrincipal.name}" htmlEscape="true" />"><sec:authentication property="principal.username" /></a></strong>
		<a href="<c:url value="/logout" />">Odhlásit</a>
	</sec:authorize>
</div>
</div>

<div id="content">